// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import { Rate, Progress, Checkbox, CheckboxGroup } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

// import Mint from 'mint-ui';
import { Field, Radio, Cell, Checklist, Picker, Popup, MessageBox} from 'mint-ui';
import 'mint-ui/lib/style.css'
// import wx from 'weixin-js-sdk'

import './assets/style/piblic.css'
import router from './router'
import axios from 'axios'

Vue.prototype.$axios = axios

// import VueAwesomeSwiper from 'vue-awesome-swiper'
// require styles
import 'lib-flexible'

// Vue.use(VueAwesomeSwiper, /* { default global options } */)

// Vue.prototype.wx= function(test){
//   console.log(wx,test)
// }


Vue.use(Rate);
Vue.use(Progress);
Vue.use(CheckboxGroup);
Vue.use(Checkbox);
// Vue.use(Alert);
// Vue.use(MessageBox);
// Vue.use(Mint);
Vue.component(Field.name, Field);
Vue.component(Radio.name, Radio);
Vue.component(Checklist.name, Checklist);
Vue.component(Cell.name, Cell);
Vue.component(Picker.name, Picker);
Vue.component(Popup.name, Popup);
// Vue.component(MessageBox.name, MessageBox);
Vue.prototype.$messagebox = MessageBox

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
